package com.ruoyi.custom.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车辆类型对象 car_type
 * 
 * @author wjq
 * @date 2025-09-17
 */
public class CarType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键（自增，无符号整数，避免负数） */
    private String id;

    /** 所属品牌id（关联汽车品牌表的id） */
    @Excel(name = "所属品牌id", readConverterExp = "关=联汽车品牌表的id")
    private String bid;

    /** 车型名称（如：宝马3系、奔驰C级） */
    @Excel(name = "车型名称", readConverterExp = "如=：宝马3系、奔驰C级")
    private String tName;

    /** 车型图片路径（存储图片的URL或服务器路径，可为空） */
    @Excel(name = "车型图片路径", readConverterExp = "存=储图片的URL或服务器路径，可为空")
    private String tImg;

    /** 删除状态：0-未删除，1-已删除（逻辑删除标识） */
    private Long deleted;

    /** 品牌名称（关联查询结果） */
    private String brandName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setBid(String bid) 
    {
        this.bid = bid;
    }

    public String getBid() 
    {
        return bid;
    }

    public void settName(String tName) 
    {
        this.tName = tName;
    }

    public String gettName() 
    {
        return tName;
    }

    public void settImg(String tImg) 
    {
        this.tImg = tImg;
    }

    public String gettImg() 
    {
        return tImg;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bid", getBid())
            .append("tName", gettName())
            .append("tImg", gettImg())
            .append("deleted", getDeleted())
            .append("brandName", getBrandName())
            .toString();
    }
}
